package com.xm_jd.model.dao;

import java.util.List;

import com.xm_jd.model.entitys.user;
import com.xm_jd.utils.BaseDao;

public class index5Dao {
	BaseDao<user> dao = new BaseDao<>(user.class);
	
	public List<user> getselectu(int user_id){
		String sql = "select * from tb_user where user_id=?";
		return dao.selectAll(sql, new Object[]{user_id});
	}
	
	public int xg(String sex,String nicheng,String name, int user_id){
		String sql="UPDATE tb_user SET user_sex=?,user_nicheng=?,user_name=? WHERE user_id=?;";
		return dao.executeUpdate(sql, new Object[]{sex,nicheng,name,user_id});
	}
}
